/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author c0909h1161
 */
class Thread1 extends Thread
{
    public void run()
    {
            int a;
            int b;
            int c;
  for(a =1;a<=5;a++)
        {
  for(b=1; b<=5-a; b++)
            {
                System.out.print(" ");

            }

            //int max = 2*a-1;

    for(b=1; b<=2*a-1; b++)
            {
                System.out.print("*");

            }
             System.out.println();
    try


    {
                    Thread.sleep(100);
                }

     catch(  InterruptedException ex)
                {

                }


        }
    }
}
        class Thread2 extends Thread
{
    public void run()
    {
        for(int a=1;a<=5;a++)
        {
            System.out.println(a*a);
            try
                {
                    Thread.sleep(1100);
                }
                catch(InterruptedException ex)
                    {

                      }
         }
     }
    }
